package cn.edu.scau.cmi.yangmupei.simpleFactoryMethod;

public class MeatFactory {
	
	public static Meat generateMeat(String type) {
		Meat meat = null;
		if(type.equals("beef")) {
			meat = new Beef();
		}else if(type.equals("pork")) {
			meat = new Pork();
		}else if(type.equals("chicken")) {
			meat = new Chicken();
		}
		return meat;
	}

}
